package object2;

/**
 * 继承练习
 */
public class ExtendsExercise01 {

    public static void main(String[] args) {
        BB b = new BB();//输出什么 a,b name,b
    }
}

class A {

    A(){
        System.out.println("a");
    }

    A(String name) {
        System.out.println("a name");
    }
}

class B extends A {

    B(){
        this("abc");
        System.out.println("b");
    }

    B(String name) {
        System.out.println("b name");
    }
}
